package com.shen.library_base

import android.app.Application
import android.content.Context
import androidx.multidex.MultiDex
import androidx.multidex.MultiDexApplication

open class BaseApp : MultiDexApplication(){

    companion object {
        lateinit var instance: Application

        var isBackstage = false
    }
    override fun onCreate() {
        super.onCreate()
        instance = this


    }

    override fun attachBaseContext(base: Context) {
        super.attachBaseContext(base)
        MultiDex.install(this)
    }


    override fun onTerminate() {
        super.onTerminate()
        //ARouter.getInstance().destroy()
    }


}